import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import BaiduMap from 'vue-baidu-map'




Vue.config.productionTip = false

// app静态图片放置位置
Vue.prototype.staticDir = process.env.VUE_APP_JAVA_STATIC_IMAGE; 

//静态图片
Vue.prototype.getStaticFilePathJAVA = function (url) {
    return Vue.prototype.staticDir + url;  
}

//用户头像位置
Vue.prototype.getUserImageFilePathQiNiuYun = function (url) {
    return url;  
}




Vue.use(ElementUI);

Vue.use(BaiduMap, {
  ak: 'ZG1oSxgpKzQiHw0zYGnoCbGDtLP8wG5x'
})


//渲染之前导入全局前置守卫
import './permission'

new Vue({
  router,
  store,
  axios,
  render: h => h(App)
}).$mount('#app')
